﻿using SmartRS.com.vn.smartrs.domain;
using SmartRS.com.vn.smartrs.domain.custom;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartRS.com.vn.smartrs.util
{
    public class RSConst
    {
        public static Boolean isLogin = false;
        public static String BILL_SERIAL_FORMAT = "{0:yyyyMMddHHmmssfff}";
        public static int MAX_NUMBER_DESK_JOIN = 5;
    }

    public sealed class ConstTypeShowHall
    {
        public static short hall = 0;
        public static short desk = 1;
    }

    public sealed class tableState
    {
        public static short free = 0;
        public static short using_ = 1;
        public static short reserved = 2;   
    }
    public sealed class hallState
    {
        public static short free = 0;
        public static short using_ = 1;
        public static short reserved = 2;
    }

    //The class define global avaribale
    public sealed class Session
    {
        public static IList<BillDataTable> billDataShow = new List<BillDataTable>();
        public static IList<FoodDataRow> foodDataRow = new List<FoodDataRow>();
        public static IList<BillReportDataRow> billReportDataShow = new List<BillReportDataRow>();
        public static IList<FoodKind> listFoodKindSellMenu = null;
        public static IList<FoodKind> listFoodKindMenuDanhMuc = null;
        public static IList<FoodOrder> listFoodOrder = null;
        public static FoodOrder currentFoodOrder = null;
        public static FoodKind currentFoodKind = null;
        public static Food currentFood = null;
        public static Bill currentBill = null;

        public static DateTime billReportStartDate = DateTime.Now;
        public static DateTime billReportEndDate = DateTime.Now;
    }

    public sealed class Config
    {
        public static string logPath = "";
        public static string dbServer = "";
        public static string dbName = "";
        public static string dbUser = "";
        public static string dbPassword = "";
        public static string restaurantName = "";
        public static string restaurentAddress = "";
        public static string restaurantPhone = "";
    }
}
